package com.tj.api.rest.account.response;

import com.tj.bo.account.client.vo.AccountGrantsVO;
import com.tj.bo.common.conf.api.ResponseData;

import java.util.List;

/**
 * @program: binary-option
 * @description
 * @author: frank
 * @create: 2020-08-27 10:23
 **/
public class GrantsListResponse implements ResponseData {

    private boolean hasNextPage = true;
    private List<AccountGrantsVO> accountGrants;

    public GrantsListResponse(boolean hasNextPage, List<AccountGrantsVO> accountGrants) {
        this.hasNextPage = hasNextPage;
        this.accountGrants = accountGrants;
    }

    public boolean isHasNextPage() {
        return hasNextPage;
    }

    public GrantsListResponse setHasNextPage(boolean hasNextPage) {
        this.hasNextPage = hasNextPage;
        return this;
    }

    public List<AccountGrantsVO> getAccountGrants() {
        return accountGrants;
    }

    public GrantsListResponse setAccountGrants(List<AccountGrantsVO> accountGrants) {
        this.accountGrants = accountGrants;
        return this;
    }
}
